package top.ieei.demo.tftp;

/**
 * TFTP读文件请求，下载文件请求<br>
 * @author xiecongshu
 */
public class ReadRequest extends TftpRequest
{
    /**
     * Read request：1
     */
    public static final int OPCODE = 1;
    
    /**
     * <默认构造函数>
     */
    public ReadRequest() throws TftpException
    {
        super();
    }
    
    /**
     * <默认构造函数>
     */
    public ReadRequest(byte[] tftpP) throws TftpException
    {
        super(tftpP);
    }
    
    /**
     * 获取操作类型码
     * @return int 操作类型码
     */
    public int getOpCode()
    {
        return OPCODE;
    }
}
